package com.service.socket.support;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotNull;

@Slf4j
@Component
public class KlineLockUtils extends RedissonLockUtils {

    public boolean lock(@NotNull String key) {
        return super.lock(key);
    }

    public void unlock(@NotNull String key) {
        super.unlock(key);
    }

    public static String buildLock(Integer klineTypeValue) {
        return RedisLockConstant.TRADING_KLINE + klineTypeValue;
    }

}
